﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Group3.MediaTool.Data.DefinitionBuilder
{
    /// <summary>
    /// Interaktionslogik für uClassSelect.xaml
    /// </summary>
    public partial class uValueSelect : Window
    {
        DataDefinitionBuilder _parent;
        public uValueSelect(DataDefinitionBuilder pParent)
        {
            _parent = pParent;
            InitializeComponent();
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = System.Windows.Visibility.Collapsed;
            this.Close();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            _parent.ReturnValue = (String)tValueSelect.Text;
           this.Close();
        }
    }
}
